package com.bw.merchant.view

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.bw.base.constants.RoutePath
import com.bw.common.view.BaseMvvmActivity
import com.bw.merchant.R
import com.bw.merchant.databinding.ActivityMerchantDetailBinding
import com.bw.merchant.databinding.ActivitySettledDetailBinding
import com.bw.merchant.entity.MerchantEntity
import com.bw.merchant.net.SettledViewModel


/**
 * 智慧园区-04-商家推荐V1.1
 * 入驻申请详情
 * 兰宏宇
 * 20250510
 */
@Route(path = RoutePath.PATH_MERCHANT_SETTLED_DETAIL)
class SettledDetailActivity : BaseMvvmActivity<ActivitySettledDetailBinding,SettledViewModel>() {

    @Autowired
    lateinit var merchant:MerchantEntity


    override fun initView() {
        binding.merchantEntity = merchant
        if(merchant.status=="已审核"){
            binding.tvState.text = "已审核"
            binding.tvStateDesc.text = "已完成"
        }
        binding.ivBack.setOnClickListener { finish() }


    }

    override fun initData() {
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        ARouter.getInstance().inject(this)
        super.onCreate(savedInstanceState)
    }

}